const express = require('express')
const router = express.Router()
const thingHandler = require("../router_handler/thing.js");

router.post("/thing/public", thingHandler.public);
router.post("/thing/addThingType", thingHandler.addThingType);
router.get("/thing/getThingType", thingHandler.getThingType);
router.get("/thing/getAllThingType", thingHandler.getAllThingType);
router.get("/thing/getThingStatus", thingHandler.getThingStatus);
router.get("/thing/getAllThingByTag", thingHandler.getAllThingByTag);
router.get("/thing/getAllThingByType", thingHandler.getAllThingByType);
router.get("/thing/getAllThing", thingHandler.getAllThing);
router.get("/thing/getAllThingInfo", thingHandler.getAllThingInfo);
router.get("/thing/getThingInfoById", thingHandler.getThingInfoById);
router.get("/thing/getThingByKey", thingHandler.getThingByKey);
router.patch("/thing/removeThing", thingHandler.removeThing);
router.patch("/thing/updateStatus", thingHandler.updateStatus);
router.patch("/thing/logPv", thingHandler.logPv);
router.patch("/thing/updateTypeById", thingHandler.updateTypeById);
router.patch("/thing/removeThingInfo", thingHandler.removeThingInfo);
router.patch("/thing/updateInfoById", thingHandler.updateInfoById);
router.delete('/thing/removeThingType',thingHandler.removeThingType)


module.exports = router;

